# _*_ encoding:utf-8 _*_

from django.contrib.auth.models import Group
from rest_framework import serializers


class GroupSimpleModelSerializer(serializers.ModelSerializer):

    class Meta:
        model = Group
        fields = ['id', 'name']


class GroupModelSerializer(serializers.ModelSerializer):

    class Meta:
        model = Group
        fields = ['id', 'name', 'permissions']




